@model Student

<!DOCTYPE html>
<html>
<head>
    <style>
        .delete-container {
            max-width: 600px;
            margin: 40px auto;
            padding: 20px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
            text-align: center;
        }

        .delete-title {
            color: #d32f2f;
            margin-bottom: 30px;
            font-size: 24px;
        }

        .student-info {
            background: #f5f5f5;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
            text-align: left;
        }

        .info-item {
            margin: 10px 0;
            padding: 8px;
            border-bottom: 1px solid #ddd;
        }

        .info-label {
            font-weight: bold;
            color: #555;
            display: inline-block;
            width: 80px;
        }

        .warning-text {
            color: #d32f2f;
            margin: 20px 0;
            font-size: 16px;
        }

        .btn-container {
            margin-top: 30px;
        }

        .btn {
            padding: 10px 25px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
            margin: 0 10px;
        }

        .btn-delete {
            background-color: #d32f2f;
            color: white;
        }

        .btn-cancel {
            background-color: #757575;
            color: white;
        }

        .btn:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }
    </style>
</head>
<body>
  @* 删除确认容器 *@
    <div class="delete-container">
        <h2 class="delete-title">删除确认</h2>
        
        @* 学生信息显示区域 *@
        <div class="student-info">
            <div class="info-item">
                <span class="info-label">学号：</span>
                <span>@Model.Id</span>
            </div>
            <div class="info-item">
                <span class="info-label">姓名：</span>
                <span>@Model.StudentName</span>
            </div>
            <div class="info-item">
                <span class="info-label">年龄：</span>
                <span>@Model.Age</span>
            </div>
            <div class="info-item">
                <span class="info-label">地址：</span>
                <span>@Model.Address</span>
            </div>
        </div>

        @* 警告文本 *@
        <p class="warning-text">
            确定要删除这条学生信息吗？此操作不可恢复！
        </p>

        @* 按钮组 *@
        <div class="btn-container">
            <form asp-action="Delete" method="post">
                <input type="hidden" asp-for="Id" />
                <button type="submit" class="btn btn-delete">确认删除</button>
                <a asp-action="Index" class="btn btn-cancel">取消</a>
            </form>
        </div>
    </div>
</body>
</html>